package com.grad.why.studentsystem.mapper;

import com.grad.why.studentsystem.domain.Authorityinfos;
import com.grad.why.studentsystem.domain.AuthorityinfosExample;
import com.grad.why.studentsystem.domain.current.CurrentAuthorityInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuthorityinfosMapper {
    int countByExample(AuthorityinfosExample example);

    int deleteByExample(AuthorityinfosExample example);

    int deleteByPrimaryKey(Long authorityid);

    int insert(Authorityinfos record);

    int insertSelective(Authorityinfos record);

    List<Authorityinfos> selectByExample(AuthorityinfosExample example);

    Authorityinfos selectByPrimaryKey(Long authorityid);

    int updateByExampleSelective(@Param("record") Authorityinfos record, @Param("example") AuthorityinfosExample example);

    int updateByExample(@Param("record") Authorityinfos record, @Param("example") AuthorityinfosExample example);

    int updateByPrimaryKeySelective(Authorityinfos record);

    int updateByPrimaryKey(Authorityinfos record);

    List<CurrentAuthorityInfo> getAuthorityInfos(@Param("offset") int offset,@Param("limit") int limit,@Param("search") String search);

    long getAuthorityInfosLength(@Param("search") String search);

    int checkAuthorityExist(@Param("infos") Authorityinfos authorityinfos);

    long getMaxId();
}